﻿#include<iostream>
#include<array>
#include<vector>


int main() {

	std::array<int, 5> arr;

	std::array<int, 5> arr1 = { 1,2,3 };
	//C++17支持自动推断
	std::array arr2 = { 1,2,3 };

	//空vector
	std::vector<int> vec1;
	//初始化
	std::vector<int> vec2 = { 1,2,3 };
	//指定初始化大小为5和初始化值为0
	std::vector<int> vec3(5, 0);
	//从其他容器复制
	std::vector<int> vec4(vec2.begin(), vec2.end());

	std::cin.get();
}